package designmode.design7;

/**
 * 汽车动力源类型 枚举
 *
 * @author lfg
 * @version 1.0
 */
public enum CarPowerEnum {
    /**
     * OIL:燃油汽车
     * ELECTRICITY:电动汽车
     */
    OIL("oil", "燃油汽车"),
    ELECTRICITY("electricity", "电动汽车");

    private final String code;
    private final String text;

    CarPowerEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    public String getCode() {
        return code;
    }

    public String getText() {
        return text;
    }
}
